/*
[Contents]

	0- Global
	1- Common Form
	2- Addins to Common Form
	3- Product type form
	4- Variation form
	5- Order form
	6- Support form
*/

/* =0 Global
---------------------------------------------------------------------------------------------------------------------*/
label {
	color: #555;
	font-weight: bold;
	white-space: nowrap;
}
input[type="text"], input[type="password"] {
	border: 1px solid #CCC;
	height: 16px;
	padding: 1px;
}
input[type="text"]:focus, input[type="password"]:focus {
	border-color: #39C;
}
textarea {
	border: 1px solid #CCC;
}
textarea:focus {
	border-color: #39C;
}
select {
	border: 1px solid #CCC;
	height: 20px;
}
select:focus {
	border-color: #39C;
}
select[multiple] {
	width:285px;
}
button, input.button {
	background:url(images/button.png) repeat-x;
	border: 1px solid #999;
	color: #333;
	cursor: pointer;
	font-size:11px;
	height: 22px;
	line-height: 22px;
	padding: 0 8px;
	
	/* Do Rounding */
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}
button:hover, input.button:hover {
	background-image:url(images/button-hover.png);
	border-color: #2E63A5;
	color: #FFF;
}
/* jQuery Dropdown Checklist
---------------------------------------------------------------*/
.ui-dropdownchecklist {
	background:#FFF url(images/dropdown.png) no-repeat center right;
	border: 1px solid #CCC;
	height: 18px;
}
.ui-dropdownchecklist-active {
	background: url(images/dropdown_active.png) no-repeat center right;
	border-color: #39C;
}
.ui-dropdownchecklist-text {
	font-weight: normal;
	margin-right: 17px; /* background dropdown.png image */
	padding-left: 2px;
	white-space: nowrap;
}
.ui-dropdownchecklist-dropcontainer {
	background-color: #FFF;
	border: 1px solid #999;
}
.ui-dropdownchecklist-item {
	padding: 3px;
}
.ui-dropdownchecklist-item input[type="checkbox"] {
	float: left;
	margin-top: 3px;
}
.ui-dropdownchecklist-item-hover {
	background-color: #39F;
}
.ui-dropdownchecklist-item-disabled label {
	color: #000;
}
.ui-dropdownchecklist-item-hover .ui-dropdownchecklist-text {
	color: #FFF;
}
.ui-dropdownchecklist-group {
	font-weight: bold;
	font-style: italic;
}
.ui-dropdownchecklist-indent {
	padding-left: 20px;
}

/* =1 Common Form
---------------------------------------------------------------------------------------------------------------------*/
.common-form {
	margin-top: 10px;
}
.common-form legend span,
.common-form label,
.common-form input,
.common-form select,
.common-form .ui-dropdownchecklist-wrapper,
.common-form textarea {
	float: left;
	margin-right: 5px;
}
.common-form fieldset {
	margin: 10px 0 20px;
}
.common-form legend {
	border-bottom: 2px solid #CCC;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
	padding-bottom:5px;
	width: 100%;
}
.common-form legend span {
	float: left;
}
.common-form legend a {
	float:right;
	font-size:12px;
	font-weight:normal;
	margin-left:5px;
}
.common-form legend:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
.common-form table {
	margin-bottom: 5px;
	width: 100%;
}
.common-form tr {
	border-bottom: 1px solid #EEE;
}
.common-form tbody > tr > th {
	padding: 5px;
	vertical-align: top;
	width: 140px;
}
.common-form td {
	padding: 5px;
}
.common-form p {
	margin-bottom: 10px;
}
.common-form p.left {
	margin-right: 10px;
}
.common-form label
{
	line-height:20px;
}
.common-form .watermark{
	color:#999;
}
.common-form input[type="text"], .common-form input[type="password"] {
	width: 300px;
}
.common-form input[type="text"].date {
    width: 100px;
}
.common-form textarea {
	width: 500px;
}
.common-form input[type="checkbox"] {
	margin-top: 3px;
}
.common-form .checkbox-label, .common-form .radio-label {
	display: inline !important;
	float:none;
	font-weight: normal;
	line-height:13px;
	white-space: nowrap;
}
.common-form .checkbox-label{
	line-height:16px;
}
.common-form .select-label {
	display: inline;
	margin-right: 5px;
	width: auto;
}
.field-validation-valid, .common-form .field-validation-error {
	line-height: 20px;
}
.field-validation-error {
	color: #F00;
}

/* Length of form elements
---------------------------------------------------------------*/
/* Mini */
.common-form label.mini {
	width:44px;
}
.common-form input[type="text"].mini, .common-form input[type="password"].mini {
	width:40px;
}
.common-form select.mini {
	width:42px;
}

/* Short */
.common-form label.short {
	width:104px;
}
.common-form input[type="text"].short, .common-form input[type="password"].short {
	width:100px;
}
.common-form select.short {
	width:104px;
}

/* Medium */
.common-form label.medium {
	width:204px;
}
.common-form input[type="text"].medium, .common-form input[type="password"].medium {
	width:200px;
}
.common-form select.medium {
	width:204px;
}

/* Long */
.common-form label.long {
	width:304px;
}
.common-form input[type="text"].long,
.common-form input[type="password"].long {
	width:300px;
}
.common-form select.long{
	width:304px;
}

/* Max */
.common-form input[type="text"].max,
.common-form input[type="password"].max,
.common-form select.max{
	width:100%;
}

/* Form Block
---------------------------------------------------------------*/
.form-block table{
	margin-bottom:5px;
}
.form-block tbody{
	border-bottom:2px solid #CCC;
}
.form-block tbody tr{
	border-bottom:none;
}
.form-block a.add{
	margin-left:5px;
}
.form-block a.remove{
	display:inline-block;
	margin-top:2px;
}

/* Item list
---------------------------------------------------------------*/
.item-list li{
	clear:both;
}
.item-list span{
	float:left;
	line-height:19px;
	margin-right:5px;
}
/* Edit block
---------------------------------------------------------------*/
.edit-block {
	margin-bottom:5px;
}
.edit-block a img{
	margin-top:2px;
}

/* Checkbox list */
.checkbox-list{
	border:1px solid #CCC;
	max-height:136px;
	overflow:auto;
	padding:5px;
} 

/* Action icons
---------------------------------------------------------------*/
.form-action{
	margin:2px 0 0 0;
}

/* Buttons
---------------------------------------------------------------*/
.buttons{
	background: url(images/command-bg.png) repeat-x;
	border: 1px solid #DDD;
	padding:5px;
	
	/* Do Rounding */
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.common-form a.button {
	/* float: left; */
	margin-right: 13px;
}
.common-form button, .common-form input.button {
	float:none;
	margin-right: 10px;
}

/* =2 Addins to Common Form
---------------------------------------------------------------------------------------------------------------------*/
/* Tooltip
---------------------------------------------------------------*/
.tooltip-link {
	background: url(images/help_light.gif) no-repeat left center;
	cursor: pointer;
	display: block;
	float: left;
	height: 15px;
	margin-right: 5px;
	margin-top: 3px;
	text-indent: -3000px;
	width: 15px;
}
.tooltip-link:hover, .tooltip-link.active {
	background: url(images/help.gif) no-repeat left center;
}
.common-form th .tooltip-link
{
	margin-top:0;
}
#tooltip {
	background: #F0E9A5;
	border: 2px solid #E1DEAC;
	padding: 5px;
	position: absolute;
	z-index: 3000;
	
	/* Do Rounding */
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}
#tooltip h3 {
	color: #000;
	font-size: 12px;
	font-weight: normal;
}

/* Thumbnails
----------------------------------------------------------------*/
.thumbnails {
}
.thumbnails li {
	float: left;
	margin:5px;
}
.thumbnails img {
	border: 1px solid #CFCFCF;
	display:block;
	margin-bottom:3px;
	padding-bottom:3px;
}
.thumbnails p {
	color:#999;
	margin:0;
	text-align:center;
}
.thumbnails p span{
	margin:0 10px;
}
.thumbnails li.default {
	position:relative;
}
.thumbnails li.default img {
	border-color: Orange;
}
.thumbnails li.default > span{
	background:url(images/icons/tick.png) no-repeat;
	bottom:22px;
	display:block;
	height:16px;
	position:absolute;
	right:3px;
	width:16px;
}

/* =3 Product type form
---------------------------------------------------------------------------------------------------------------------*/
.producttype-form{
	border:1px solid #CCC;
	margin: 10px 0 0 0;
	padding:0 10px;
}

/* =4 Variation form
---------------------------------------------------------------------------------------------------------------------*/
.variation-form{
	border:1px dashed #CCC;
	margin-bottom:5px;
	padding:10px;
}

/* =5 Order form
---------------------------------------------------------------------------------------------------------------------*/
.order-form{
	margin-bottom:10px;
}
.order-form.common-form{
	background:#F1F1F1;
	border:1px solid #CCC;
	padding:5px;
}
.order-form .common-form{
	background:#F1F1F1;
	border:1px solid #CCC;
	padding:5px;
	width:48%;
}
.order-form fieldset{
	margin:0;
}

/* Product view
---------------------------------------------------------------*/
.product-view{
	position:relative;
}
.product-view > span{
	background:url(images/arrow_top.gif) no-repeat;
	display:block;
	height:16px;
	left:10px;
	position:absolute;
	width:20px;
	z-index:3;
}
.product-view .common-form{
	background:#FFF;
	border:2px solid #BDB936;
	margin:0;
	position:absolute;
	top:14px;
	z-index:2;
	
	/* Do Rounding */
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.product-view .common-form fieldset{
	margin:0;
}
.product-view .common-form table,
.product-view .common-form tr,
.product-view .common-form th,
.product-view .common-form td{
	border:0 none;
}
.product-view .common-form th{
	background:none;
}
.product-view .common-form td{
	background:none !important;
}

/* =6 Support form
---------------------------------------------------------------------------------------------------------------------*/
.support-form{
	border:1px solid #CCC;
	padding:10px;
}